/*
 * $Id$
 */
package py.windmill.util;

/**
 *
 * @author myang
 */
public class KeyValue<X, Y> {

    private X _x;
    private Y _y;
   
    public static <M, N> KeyValue pair(final M m, final N n) {
        return new KeyValue(m, n);
    }

    private KeyValue(final X x, final Y y) {
        _x = x;
        _y = y;
    }

    public X key() {
        return _x;
    }

    public Y value() {
        return _y;
    }
}
